projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b493a
)
window: Remove pointless ternary operator
author
Timm Bäder
<mail@baedert.org>
Mon, 20 Mar 2017 13:59:14 +0000
(14:59 +0100)
committer
Timm Bäder
<mail@baedert.org>
Mon, 20 Mar 2017 13:59:14 +0000
(14:59 +0100)
we're already checking for orientation == GTK_ORIENTATION_HORIZONTAL
right before this line, so just pass GTK_ORIENTATION_VERTICAL.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index f22b9ec91d725a90cfd12b7a17ca767c176686a3..50fe2acec50d6ca6f7d60cf3022a4278a762d453 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-685,8
+685,7
@@
gtk_window_measure (GtkWidget *widget,
int size = for_size;
if (orientation == GTK_ORIENTATION_HORIZONTAL && for_size >= 0)
gtk_widget_measure (priv->title_box,
- orientation == GTK_ORIENTATION_HORIZONTAL ? GTK_ORIENTATION_VERTICAL :
- GTK_ORIENTATION_HORIZONTAL,
+ GTK_ORIENTATION_VERTICAL,
-1,
NULL, &size,
NULL, NULL);